package com.work.user.feign;

import com.work.entity.Result;
import com.work.user.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user")
public interface RoleFeign {

    @PostMapping("/role/add")
    public Result add(@RequestBody Role role, @RequestParam Integer[] mids);

}
